#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;

int& tem()
{
	static int a = 3;
	return a;
}

int main()
{
	/*cout << tem() << endl;
	cout << tem() << endl;*/
	int &ret = tem();
	printf("%d\n", ret);
	printf("%d", ret);
	return 0;
}